<?php
session_start();

define('INCLUDE_CHECK',true);

require_once "./includes/objects/connection.php";

if(!isset($_SESSION['userid'])){
	
?>

<html lang="es">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Stick Wars</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="description" content="Stick Wars, el gran juego de peleas">
		<meta name="author" content="Jose Luis Represa">
		<!-- [if lt IE 9] -->
		<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<!-- [endif] -->
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
		<script src="bootstrap/js/bootstrap.min.js"></script>
		<script src="./ajax/login.js"></script>
		<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
		<style type="text/css">
     	 	body {
        		padding-top: 60px;
        		padding-bottom: 40px;
      		}
    	</style>
		<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
		<link href="css/override.css" rel="stylesheet">
		<link href="css/style.css" rel="stylesheet">
	</head>
	<body>
		<?php include("includes/containers/header.php"); ?>
		<div id="wrapper">
			<div class="container-fluid">
				<div class="row">
					<!-- LOGIN + REGISTRO -->
					<div class="span10 offset1 hero-unit">
						<!-- LOGIN -->
						<div class="span3">
							<form id="login" class="form-signin">
								<legend>Inicia sesion:</legend>
						        <input id="log_email" type="text" class="input-block-level" placeholder="Email">
						        <input id="log_pass" type="password" class="input-block-level" placeholder="Password">
						        <label class="checkbox">
						        	<input type="checkbox" value="remember-me"> Recu&eacute;rdame
						        </label>
						        <input class="btn btn-large btn-primary btn-warning" type="submit" value="Log In" />
							</form>
						</div>
						<!-- REGISTRO -->
						<div class="span5 offset1">
							<form id="register" class="form-signin">
								<legend>Reg&iacute;strate aqu&iacute;:</legend>
								<input type="text" id="register_user" class="input-block-level" placeholder="Usuario">
						        <input type="text" id="register_email" class="input-block-level" placeholder="Email">
						        <input type="password" id="register_pass" class="input-block-level" placeholder="Password">
						        <input type="password" id="register_passr" class="input-block-level" placeholder="Repita la password">
						        <label class="checkbox"></label>
						        <input class="btn btn-large btn-primary btn-warning" type="submit" value="Log In" />
							</form>
						</div>
						<!-- BARRA DE PROGRESO -->
						<div id="status_bar" class="progress progress-striped progress-warning active span9" style="display: none;">
						  <div class="bar" style="width: 0%;"></div>
						</div><!-- BARRA DE PROGRESO -->
					</div><!-- LOGIN + REGISTRO -->
				</div>
			</div><!-- CONTAINER-FLUID -->
		</div><!-- WRAPPER -->
		<?php
		}
		
		include("includes/containers/footer.php");
		?>
	</body>
</html>